HelmRelease supprt missing info.deleted field#1975
Conversation
WalkthroughThe Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~5 minutes
Pre-merge checks and finishing touches❌ Failed checks (1 inconclusive)
✅ Passed checks (2 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 0
🧹 Nitpick comments (1)
src/robusta/core/model/helm_release.py (1)
24-24: UseOptional[str] = Nonefor consistency with other optional fields in the class.The fix correctly prevents parsing failures when
deletedis missing from Helm release data. However, the current pattern withstr = ""is inconsistent with other optional fields in theInfoclass (descriptionandnotesboth useOptional[str]).For consistency and clarity, consider:
- deleted: str = "" + deleted: Optional[str] = NoneThis aligns with the class's existing pattern for optional string fields and makes it explicit that the field can be absent.
📜 Review details
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
src/robusta/core/model/helm_release.py(1 hunks)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (3)
- GitHub Check: run_tests
- GitHub Check: run_tests
- GitHub Check: Deploy docs
No description provided.